/*    */ package server.life;
/*    */ 
/*    */ public enum ElementalEffectiveness
/*    */ {
/*  5 */   正常(1.0D), 免疫(0.0D), 增强(0.5D), 虚弱(1.5D);
/*    */   private final double value;
/*    */   
/*    */   ElementalEffectiveness(double val) {
/*  9 */     this.value = val;
/*    */   }
/*    */   
/*    */   public static ElementalEffectiveness getByNumber(int num) {
/* 13 */     switch (num) {
/*    */       case 1:
/* 15 */         return 免疫;
/*    */       case 2:
/* 17 */         return 增强;
/*    */       case 3:
/* 19 */         return 虚弱;
/*    */     } 
/* 21 */     throw new IllegalArgumentException("Unkown effectiveness: " + num);
/*    */   }
/*    */ 
/*    */   
/*    */   public double getValue() {
/* 26 */     return this.value;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\life\ElementalEffectiveness.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */